package chapter03.example12;

class Student{
    String name;
    {
        System.out.println("我是构造代码区块");
    }
    // 构造方法
    public Student(){
        System.out.println("我是Student的构造方法");
    }
}
public class Example12 {
    public static void main(String[] args) {
        Student stu1 = new Student();
        Student stu2 = new Student();
    }
}
